package org.practice.action;

import com.opensymphony.xwork2.ActionSupport;

public class OgnlAction extends ActionSupport{
	private String name;
	private String message;
	public String execute() throws Exception {
		//表示从资源文件中读取数据,msg:key
		message = this.getText("msg");
		System.out.println("========"+message);
		System.out.println("+++====="+name);
		return SUCCESS;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
}
